package com.sanalkitaplik.database;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

import com.ibm.db2.jcc.DB2Driver;

public class DB2Connector {

	public DB2Connector() {
		try {
			Class.forName("com.ibm.db2.jcc.DB2Driver");
		} catch (ClassNotFoundException e1) {
			e1.printStackTrace();
			return;
		}
		String url = "jdbc:db2j:net://localhost:50000/SNLKTPLK";
		Connection conn = null;
		try {
			conn = DriverManager.getConnection(url, "db2inst1", "123456");
		} catch (SQLException e) {
			e.printStackTrace();
			return;
		}
	}

}
